package cn.sinjet.viewmodel;

public class ViewEvent {
   public final static int CLICK = 1;
   public final static int LONG_PRESS = 2;
   public final static int DROP = 3;
   public static final int ACTION_UP = 4;
   public static final int ACTION_DN = 5;
   
   private int action = 0;
   private int x = 0;
   private int y = 0;
   private int tag = 0;
   private String str = null;
   public ViewEvent(int tag,int action){
	   this.tag = tag;
	   this.action = action;
   }
   
   public int getTag(){
	   return tag;
   }
   public void setTag(int tag){
	   this.tag = tag;
   }
   public int getAction(){
	   return action;
   }
   
   public int getX(){
	   return x;
   }
   public int getY(){
	   return y;
   }
   public void setX(int x){
	   this.x = x;
   }
   public void setY(int y){
	   this.y = y;
   }
   public void setString(String str){
	   this.str = str;
   }
   public String getString(){
	   return str;
   }   
}
